function initPage(reportName)
	  {
		var companyId = $("#companyId").val();
		var companyName = $("#companyId").find("option:selected").text();
		if(null == companyId || "" == companyId){
			alert("请选择公司");
			return;
		}
		var operatetime = $("#operatetime").val();
		var year,month;
		if(null != operatetime && "" != operatetime){
			year = operatetime.substring(0,4);
			month = parseInt(operatetime.substring(5));
		}else{
			alert("请选择年月");
			return;
		}
		var bookId = $("#bookId").val();
		var bookName=$("#bookId").find("option:selected").text();
		var colNum = $("#bookId").find("option:selected").attr("col");
		if(null == bookId || "" == bookId){
			alert("请选择薪水册");
			return;
		}
		var vifrmBirt = document.getElementById("ifrmBirt");
		vifrmBirt.src="frameset?__report="+reportName+".rptdesign&colNum="+colNum+"&companyId="+companyId+"&bookId="+bookId+"&bookName="+bookName+"&year="+year+"&month="+month+"&companyName="+companyName;
	   //frameset?__report=test.rptdesign&yyyymmdd=2015/05/05
	  }
    //查询薪水册
      function getSalaryBook() {
      	var companyId = $("#companyId").val();
      	var operatetime = $("#operatetime").val();
      	var year = operatetime.substring(0,4);
      	var month = operatetime.substring(5);
        $.ajax({
          async : false,
          cache : false,
          type : 'GET',
          url : "reportController.do?getSalaryBook",// 请求的action路径
          data : {companyId:companyId,year:year,month:month},
          error : function() {// 请求失败处理函数
          },
          success : function(data) {
            var d = $.parseJSON(data);
            if (d.success) {
              if (d.attributes.bookList.length > 0) {
            	  var options = "<option value=''>请选择薪水册</option>";
              	  for(var i = 0;i<d.attributes.bookList.length;i++){
              		options += "<option value='"+d.attributes.bookList[i].BOOK_ID+"' col='"+d.attributes.bookList[i].COL_NUM+"'>"+d.attributes.bookList[i].BOOK_NAME+"</option>";
              	  }
              	  $("#bookId").html(options);
              }
           } else {
    			alert(d.msg);
            }
          }
        });
      }